package com.martin.fast_frame_compose.page.home

import com.martin.fast_frame_compose.base.BaseViewModel
import com.martin.fast_frame_compose.router.PageRouter

class HomeViewModel : BaseViewModel() {

    val actionList = listOf(
        "测试页",
        "刷新功能",
        "弹窗",
    )

    fun onActionClick(action: String) {
        when (action) {
            "测试页" -> navigateTo(PageRouter.TEST)
            "刷新功能" -> navigateTo(PageRouter.REFRESH)
            "弹窗" -> navigateTo(PageRouter.DIALOG)
        }
    }
}